function [ zName ] = genSeqZRowName( this, baseName, seq )
% DataMatrix::genSeqZRowName(name, seq)
% Generate sequential row names with $baseName$ appended by the
% sequence numbers
% 
% Input
% 1. baseName :  must be a string
% 2. seq : sequence numbers to be appended to the $baseName$
% 
% Output
% 1. zName
% 
% Syntax
% 1. zName = dataMatrix.genSeqZRowName('r'); 
%        % By default, $seq$ <- 1:dataMatrix.nRow
% 2. zName = dataMatrix.genSeqZRowName('r', 1:3); 
%        % $zName$ <- {'r1', 'r2', 'r3'}'

if nargin == 2
    seq = 1:this.nRow;
end

if isequal(seq, ':')
    seq = 1:this.nRow;
end

nName = length(seq);
zName = cell(1, nName);

for iName = 1:nName
    zName{iName} = [baseName, '_', num2str(seq(iName))];
end

end
